import Vue from 'vue'
import VueRouter from 'vue-router'
import index from '../views/parent/index.vue'
import P_index from '../views/personal/P_index.vue'
import C_index from '../views/company/C_index.vue'
import professorLogin from '../views/professor/login.vue'
import professorPage from "@/views/professor/professorPage"
import Home from '../views/index/Home.vue'


Vue.use(VueRouter)

const routes = [
  // 总公司后台
  // {
  //   path:'/addyuangong',
  //   name:'addyuangong',
  //   component:addyuangong
  
  // },
  // {
  //   path:'/shenhe',
  //   name:'shenhe',
  //   component:shenhe
  
  // },
  //   {
  //   path: '/',
  //   name: 'layout',
  //   component: index,
  //   children: [
  //     {
  //       name:'xiugaimima',
  //       path: '/xiugaimima',
  //       component: () => import('../components/parent/xiugaimima.vue')
  //     }
  //   ]
  // },
  {
    path: '/index',
    // name: 'layout',
    component: index,
    redirect:'/lookblack',
    children: [
      {
        name:'123',
        path: '/123',
        component: () => import('../components/parent/123.vue')
      },
      {
        name:'lookblack',
        path: '/lookblack',
        component: () => import('../components/parent/lookblack.vue')
      },
      {
        name:'Qiyeguanli',
        path: '/Qiyeguanli',
        component: () => import('../components/parent/Qiyeguanli.vue')
      },
      {
        name:'person',
        path: '/person',
        component: () => import('../components/parent/person.vue')
      },
      {
        name:'technocracy',
        path: '/technocracy',
        component: () => import('../components/parent/technocracy.vue')
      },
      {
        name:'financial',
        path: '/financial',
        component: () => import('../components/parent/financial.vue')
      },
      {
        name:'inform',
        path: '/inform',
        component: () => import('../components/parent/inform.vue')
      }
    ]
  },
  
  // 个人后台
  {
    path:'/personal',
    name:'P_index',
    component:P_index,
    redirect:'/GrowthTree',
    children:[
      {
        path:'/GrowthTree',
        name:'GrowthTree',
        component:() => import('../components/personal/GrowthTree.vue'),
       },
       {
         path:'/Tran_ex',
         name:'Tran_ex',
         component:() => import('../components/personal/Tran_ex.vue'),
       },

      {
        path:'/Work_ex',
        name:'Work_ex',
        component:() => import('../components/personal/Work_ex.vue'),
      },

      {
        path:'/S_resume',
        name:'S_resume',
        component:() => import('../components/personal/S_resume.vue'),
      },
      {
        path:'/Pmanage',
        name:'Pmanage',
        component:() => import('../components/personal/Pmanage.vue'),
      },
      {
        path:'/save_position',
        name:'save_position',
        component:() => import('../components/personal/save_position.vue'),
      },{
        path: '/personal_inf',
        name: 'personal_inf',
        component: () => import('../components/personal/personal-inf.vue'),
      },
      {
        path: '/pro_skill',
        name: 'pro_skill',
        component: () => import('../components/personal/pro_skill.vue'),
      },
      {
        path: '/add_skill',
        name: 'add_skill',
        component: () => import('../components/personal/add_skill.vue'),
      },
      {
        path: '/self_eval',
        name: 'self_eval',
        component: () => import('../components/personal/self_eval.vue'),
      },
      {
        path: '/add_eval',
        name: 'add_eval',
        component: () => import('../components/personal/add_eval.vue'),
      },
      {
        path: '/Pinformation',
        name: 'Pinformation',
        component: () => import('../components/personal/Pinformation.vue'),
      },
      {
        path: '/Peducation',
        name: 'Peducation',
        component: () => import('../components/personal/Peducation.vue'),
      },
    ]
   },
  //企业后台
  {
    path:'/Company',
    name:'C_index',
    component:C_index,
    redirect:'/P_management',
    children:[
    {
        path:'/Interview',
        name:'Interview',
        component:() => import('../components/company/Interview.vue'),
    },{
      path:'/P_management',
      name:'P_management',
      component:() => import('../components/company/P_management.vue'),
    },{
      path:'/Newpost',
      name:'Newpost',
      component:() => import('../components/company/Newpost.vue'),
    },
      {
        path: '/r_account_management',
        name: 'r_account_management',
        component: () => import('../components/company/r_account_management.vue'),
      }
      ,
      {
        path: '/c_real_name_aut',
        name: 'c_real_name_aut',
        component: () => import('../components/company/c_real_name_aut.vue'),
      }
      ,
      {
        path: '/pro_look',
        name: 'pro_look',
        component: () => import('../components/company/pro_look.vue'),
      },
      {
        path: '/Cdsj',
        name: 'Cdsj',
        component: () => import('../components/company/Cdsj.vue'),
      },
      {
        path: '/Cqyxx',
        name: 'Cqyxx',
        component: () => import('../components/company/Cqyxx.vue'),
      },
      {
        path: '/Cmanage',
        name: 'Cmanage',
        component: () => import('../components/company/Cmanage.vue'),
      }
      ]
   },
  //  专家后台
  {
    path: '/professorLogin',
    name: 'professorLogin',
    component: professorLogin,
  },
    {
        path:'/professorPage',
        name:'professorPage',
        component:professorPage,
        redirect:'/totalView',
        children: [
            {
                path: '/totalView',
                name:'totalView',
                component:  () => import('../views/professor/totalView.vue'),
            },
            {
                path: '/informationEdu',
                name: 'informationEdu',
                component:  () => import('../views/professor/informationEdu.vue'),
            },
            {
              path: '/informationWork',
              name:'informationWork',
              component:  () => import('../views/professor/informationWork.vue'),
            },
            {
                path: '/informationSkill',
                name:'informationSkill',
                component:  () => import('../views/professor/informationSkill.vue'),
            },
             {
               path:'/xinxiProfessor',
               name:'xinxiProfessor',
               component:  () => import('../views/professor/xinxiProfessor.vue'),
             },
            {
                path:'/jianlipj',
                name:'jianlipj',
                component:  () => import('../views/professor/jianlipj.vue'),
            },
            {
                path:'/jianli',
                name:'jianli',
                component:  () => import('../views/professor/jianli.vue'),
            },
            {
              path:'/jianlipg',
              name:'jianlipg',
              component:  () => import('../views/professor/jianlipg.vue'),
          },
          {
            path:'/jianlixq',
            name:'jianlixq',
            component:  () => import('../views/professor/jianlixq.vue'),
        },
        {
          path:'/jianlitree',
          name:'jianlitree',
          component:  () => import('../views/professor/jianlitree.vue'),
      },
        ]
    },
    // 首页
    {
      path: '/',
      name: 'Home',
      component: Home,
    },
    {
      path:'/Firstpage',
      name:'Firstpage',
      component: () => import('../views/index/Firstpage.vue')
    },
    {
      path:'/Inform1',
      name:'Inform',
      component: () => import('../views/index/Inform.vue')
    },
    
    {
      path:'/Gjpxtz',
      name:'Gjpxtz',
      component: () => import('../views/index/Gjpxtz.vue')
    },
    {
      path:'/business',
      name:'business',
      component: () => import('../views/index/business.vue')
    },
    {
      path:'/person1',
      name:'person',
      component: () => import('../views/index/person.vue')
    },
    {
      path:'/login',
      name:'login',
      component: () => import('../views/index/login1.vue')
    },
    {
      path:'/register',
      name:'register',
      component: () => import('../views/index/register.vue')
    },
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})


export default router
